package HomeWork.AdvancedStream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * 用转换流进行读取字符串到程序
 */
public class Practice031 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("osw.txt");
        InputStreamReader isr=new InputStreamReader(fis);
        int temp;
        while((temp=isr.read())!=-1){
            System.out.print((char)temp);
        }
        isr.close();
    }
}
